class Player < ActiveRecord::Base
  belongs_to :User, :foreign_key => "user_id"
  belongs_to :Map, :foreign_key => "map_id"
  validates_presence_of :playername
  validates_presence_of :xpos
  validates_presence_of :ypos
end
